<?php 
include"sql.php";
if(isset($_GET['name'])){$name=$_GET['name'];
$name=mysql_real_escape_string($name);
$query="select uname from login where uname=\"$name\";";
$result=mysql_query($query);
@$row=mysql_fetch_array($result);
if (!$row[0]){echo"<font color=\"green\">Available</font>";}
else {echo"<font color=\"red\">Unavailable</font>";}
}
?>

